class CourseItemEn {
  int couId;
  String cover;
  String name;
  int num;
  int price;

  CourseItemEn({this.couId, this.cover, this.name, this.num, this.price});

  CourseItemEn.fromJson(Map<String, dynamic> json) {
    couId = json['couId'];
    cover = json['cover'];
    name = json['name'];
    num = json['num'];
    price = json['price'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['couId'] = this.couId;
    data['cover'] = this.cover;
    data['name'] = this.name;
    data['num'] = this.num;
    data['price'] = this.price;
    return data;
  }
}

class CourseItemEnList
{
  List<CourseItemEn> data;
  CourseItemEnList(this.data);
  factory CourseItemEnList.formJson(List<dynamic> json){
    return CourseItemEnList(
        json.map((i)=>CourseItemEn.fromJson((i))).toList()
    );
  }
}